package GenericsTest2;

public class Test {
    public static void main(String[] args) {

        MyArrayList<Integer> list =new MyArrayList<>();
        list.add(123);
        list.add(456);
        list.add(789);

        int i= list.get(0);
        System.out.println(i);

        System.out.println(list);
    }
}
